import axios from "../../services/axios";
export default function (useMock, params) {
    if (useMock) {
        return Promise.resolve({
            data: {
                size: 40,
                pageSize: 10,
                page: 1,
                dataList: [
                    {
                        id: "1",
                        phone: "15172448112",
                        wxNumber: "15172448112",
                        userName: "熊维",
                        maidgold: "123",
                        idCardNum: "42102319950672002X",
                        status: "待返佣",
                        memberType: "1",
                        memberStatus: "1"
                    },
                    {
                        id: "2",
                        phone: "15198472846",
                        wxNumber: "xwas2325352",
                        userName: "撒打算发",
                        maidgold: "142",
                        idCardNum: "42102319950672202X",
                        status: "待返佣",
                        memberType: "0",
                        memberStatus: "0"
                    },
                    {
                        id: "3",
                        phone: "15109876543",
                        wxNumber: "xaskj2974563",
                        userName: "免费滴哦姐",
                        maidgold: "59",
                        idCardNum: "42102319950672502X",
                        status: "待返佣",
                        memberType: "0",
                        memberStatus: "2"
                    },
                    {
                        id: "4",
                        phone: "15129875648",
                        wxNumber: "dlh29347656",
                        userName: "娃儿片",
                        maidgold: "304",
                        idCardNum: "42102319950672302X",
                        status: "待返佣",
                        memberType: "0",
                        memberStatus: "0"
                    },
                    {
                        id: "5",
                        phone: "15194830229",
                        wxNumber: "asdxzvkc32",
                        userName: "个特干净",
                        idCardNum: "42102319950672402X",
                        maidgold: "290",
                        status: "待返佣",
                        memberType: "1",
                        memberStatus: "1"
                    },
                    {
                        id: "6",
                        phone: "15194830229",
                        wxNumber: "asdxzvkc32",
                        userName: "哦吧 v 的",
                        idCardNum: "42102319950672402X",
                        maidgold: "290",
                        status: "待返佣",
                        memberType: "0",
                        memberStatus: "2"
                    },
                    {
                        id: "7",
                        phone: "15194830229",
                        wxNumber: "asdxzvkc32",
                        userName: "天热顾客 v",
                        idCardNum: "42102319950672402X",
                        maidgold: "290",
                        status: "待返佣",
                        memberType: "0",
                        memberStatus: "1"
                    },
                    {
                        id: "8",
                        phone: "15194830229",
                        wxNumber: "asdxzvkc32",
                        userName: "大声点个",
                        idCardNum: "42102319950672402X",
                        maidgold: "290",
                        status: "待返佣",
                        memberType: "1",
                        memberStatus: "2 "
                    },
                    {
                        id: "9",
                        phone: "15194830229",
                        wxNumber: "asdxzvkc32",
                        userName: "4问题干扰",
                        idCardNum: "42102319950672402X",
                        maidgold: "290",
                        status: "待返佣",
                        memberType: "1",
                        memberStatus: "1"
                    }
                ]
            }
        })
    } else {
        return axios.get('', { params });
    }
};